#pragma once
typedef int SElemType;
typedef int Status;
#define MAXSIZE 100
#define OVERFLOW -2
#define OK 1
#define ERROR 0
#include<stdio.h>
#include<stdlib.h>
typedef struct
{
	SElemType* base;
	SElemType* top;
	int stacksize;
}SqStack;

Status InitStack_Sq(SqStack& S);
void DestroyStack_Sq(SqStack& S);
void DispStack_Sq(SqStack S);
SElemType  GetTop_Sq(SqStack S);
Status Pop_Sq(SqStack& S, SElemType &e);
Status Push_Sq(SqStack& S, SElemType e);
int StackLength_Sq(SqStack S);
bool StackFull_Sq(SqStack S);
bool StackEmpty_Sq(SqStack S);
void ClearStack_Sq(SqStack& S);
void showmenu();
void Stack_Sq();





